I rebuilt this blog
My blog is all static now and it’s great
Published: 06/02/2025
I recently tore down my blog and rewrote it from scratch. The original was done while I was still relatively new to coding so there was a lot of room for improvement. I had made some poor design choices when creating it originally, the two main issues being that it was a webapp separate from my main website webapp and that it had a clunky workflow for creating and publishing new posts. So my goals in rewriting were:
- make the blog one with my main website
- make writing and publishing blog posts as smooth as possible
- simplify things and make it all just static pages
I’m fairly happy with how things have turned out so here is a quick rundown.
When I want to create a post, I now just have to write the markdown and run my
deploy.sh
script. That script and the programs it calls will do the following:
- parse markdown files and convert them to html
- do some templating to add more html so it looks like part of my website (add navbar, styles, etc)
- rebuild the docker image for this webapp (which includes blog post pages)
- deploy the new image on my server
Here’s a diagram of it all:
This is the first time I’ve used Go’s embed feature, and I’m really loving it. I think it makes a lot of sense for this kind of use case.